package com.jxbeidou.system.menu.convert;

import com.jxbeidou.system.menu.entity.RoleMenuDO;
import com.jxbeidou.system.menu.vo.RoleMenuVO;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

/**
* 角色菜单关系表
*
* @author 杜晓祥 
* @since 1.0.0 2023-12-14
*/
@Mapper
public interface RoleMenuConvert {
    RoleMenuConvert INSTANCE = Mappers.getMapper(RoleMenuConvert.class);

    RoleMenuDO convert(RoleMenuVO vo);

    RoleMenuVO convert(RoleMenuDO entity);

    List<RoleMenuVO> convertList(List<RoleMenuDO> list);

}